
const {Sequelize} = require('sequelize');

const sequelize = new Sequelize('node-jsplusplus', 'root', {
    dialect:'mysql',
    host:'localhost'
})

module.exports = sequelize;





// const mysql = require('mysql2');

// const pool = mysql.createPool({
//     host:'localhost',
//     user:'root',
//     database:'node-jsplusplus',
//     password:'nodejsplusplus',
// })

// module.exports = pool.promise();